package com.mqb;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private boolean success;
    private String msg;

    public static Result success() {
        return new Result(true, "success");
    }

    public static Result success(String msg) {
        return new Result(true, msg);
    }
}
